package com.googlecode.pwlodars.piteststat.database;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.googlecode.pwlodars.piteststat.content.PackageInfo;

final class PackageMapper implements RowMapper<PackageInfo> {
	public PackageInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
	    int id = rs.getInt("id");
	    String name= rs.getString("name");
	    return new PackageInfo(id, name);
	}
}